<button class="btn btn-success btn-sm" data-toggle="modal" data-target="#expenseAudit{{ $id }}">审核</button>

<div class="modal fade" id="expenseAudit{{ $id }}" tabindex="-1" role="dialog" aria-labelledby="incomeAudit{{ $id }}" aria-hidden="true">
    <div class="modal-dialog modal-xs">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true" style="font-size: 36px;">&times;</button>
                <h4 class="modal-title" id="myModalLabel">财务支出审核</h4>
            </div>
            <div class="modal-body">
                <div class="mb-3">
                    <label for="exampleFormControlInput1" class="form-label">审核状态</label>
                    <select name="status{{ $id }}" class="form-control">
                        @foreach(__('l.auditStatusArr') as $key => $value)
                            <option value="{{ $key }}">{{ $value }}</option>
                        @endforeach
                    </select>
                </div>
                <div class="mb-3">
                    <label for="exampleFormControlInput1" class="form-label">备注</label>
                    <textarea name="auditRemark{{ $id }}" class="form-control" placeholder="请输入备注"></textarea>
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                <button type="button" class="btn btn-primary" onclick="expenseAudit({{ $id }})">提交</button>
            </div>
        </div>
    </div>
</div>
<script>
    function expenseAudit(id)
    {
        ajaxPostFunc('/admin/ajax/expenseAudit', {
            id:id,
            status: $("select[name='status"+id+"'] option:selected").val(),
            audit_remark: $("textarea[name='auditRemark"+id+"']").val(),
            _token: $.admin.token
        }, {}, res => {
            console.log(res);
            window.location.reload();
        });
    }
</script>
